<%--
  Created by IntelliJ IDEA.
  User: bi
  Date: 2019/1/2
  Time: 17:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<link type="text/css" rel="stylesheet" href="/css/style.css" />
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("a[href=#]").click(function(){
            if(confirm('确实要实现退出操作？')){
                $("a[href=#]").target="_parent";
                top.location='/UserServlet?action=logout';
            }
        });
    });
</script>
<body class="frame-bd">
<ul class="left-menu">
    <li><a href="/BillServlet?action=fenye" target="mainFrame"><img src="../images/btn_bill.gif" /></a></li>
    <li><a href="/ProviderServlet?action=fenye" target="mainFrame"><img src="../images/btn_suppliers.gif" /></a></li>

    <c:if test="${user.role eq 1 }">

        <li><a href="/UserServlet?action=show" target="mainFrame"><img src="../images/btn_users.gif" /></a></li>
    </c:if>
    <li><a href="#" target=""><img src="../images/btn_exit.gif" /></a></li>
</ul>
</body>
</html>
